# You may, but are NOT required to, use object-oriented programming (OOP) in your solution.
# If you choose to use OOP, the methods described below should be class instance methods.

import random

# You may put any variables that you wish to maintain at the module level:


def rep_eval(pr):
	u = random.uniform(0,1)
	if u <= pr:
		return 'h'
	else:
		return 's'

def hunt_choices(round_number, current_food, current_reputation, m,  player_reputations):
    # The main routine that plays each individual round.

    # Analysis: Play a probabilistic version of the tit-for-tat strategy. 
	# More likely to play 'hunter' if the opponent hunts more
	# Play "nice" on the first round.
	# If there's only one opponent left, then play 'slack'

	
	if round_number == 1:
		hunt_decisions = ['h' for x in player_reputations]
	elif len(player_reputations) == 1:
		hunt_decisions = ['s' for x in player_reputations]
	else:
		hunt_decisions = [rep_eval(x) for x in player_reputations]
	
    return hunt_decisions
	
	
def hunt_outcomes(food_earnings):
    pass # do nothing

def round_end(award, m, number_hunters):
    pass # do nothing

